cd %~dp0

@echo off
echo [INFO] 0 for install offline, anykey of online [ !!!suggest for a first time!!! ]
set /p input=choose 0 or anykey: 
if "%input%"=="0" (goto :install_offline) else (goto :install_online)

:install_online

echo [INFO] --------------------- INSTALL THIRD PARTY LIB ---------------------
cd %~dp0third-party-lib
call %~dp0third-party-lib\maven_install.bat
cd %~dp0

echo [INFO] --------------------- INSTALL WEBAPP ONLINE ---------------------
call mvn clean install -Dmaven.test.skip=true -e
goto :end


:install_offline
echo [INFO] --------------------- INSTALL WEBAPP OFFLINE ---------------------
call mvn clean install -Dmaven.test.skip=true -e  -o
goto :end

:end
pause
